package com.jim;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

/**
 * Created by tang on 2018/10/8.
 */

//引入指定的文件
@PropertySources({@PropertySource(value = "classpath:application.properties", ignoreResourceNotFound = true),
        @PropertySource(value = "file:${config.path}/application-${spring.profiles.active}.properties", ignoreResourceNotFound = true)})
@MapperScan("com.jim.dao")//指定扫描包
//@EnableDruidConfig
@SpringBootApplication
public class Application  {
    /**
     *
     * @param args
     */
    public static void main(String[] args) {

        SpringApplication.run(Application.class, args);
    }
}
